home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-07 | 2.4 KB | 104 lines | [TEXT/DWat] |
- % Asymptote Demo #4
-
- % Read several data files and plot each
- % in a stacked column of graphs
-
- fontname times
- scale .75 % Make labels, ticks and points a bit smaller
-
- graphunits in
- graphframe 2 5 -1 1.4 % Specify the enclosure for the set of panes
- fullscreen yes
- showpage
-
- % Now, read each data file and plot it:
-
- % ----------------------
- datafile vy1cm.100m
- newGraphlocation "H\\d2\\uO 6\\d16\\u\sÆ5\\d23"
- readcolumn x 1
- readcolumn y 2
- closewindow vy1cm.100m
- graphlimits -9 45 0 0
- graphticks 5 10 1000 1000
- drawmybox parallel perpendicular
- plothistogram
- % ----------------------
- datafile vy.321GHz_TMB
- newGraphlocation "H\\d2\\uO 10\\d29\\u\sÆ9\\d36"
- readcolumn x 1
- readcolumn y 2
- closewindow vy.321GHz_TMB
- rpn <y 44.565 * >y
- graphlimits -9 45 0 0
- graphticks 5 10 50 50
- drawmybox nolabels perpendicular
- plothistogram
- % ----------------------
- datafile vy1mm.bro
- newGraphlocation "H\\d2\\uO \sn\\d2\\u 5\\d50\\u\sÆ6\\d43"
- readcolumn x 1
- readcolumn y 2
- closewindow vy1mm.bro
- rpn <y 6.7 * >y
- graphlimits -9 45 0 0
- graphticks 5 10 .5 .5
- drawmybox nolabels perpendicular
- plothistogram
- % ----------------------
- datafile vy3mm.nar
- newGraphlocation "H\\d2\\uO \sn\\d2\\u 4\\d40\\u\sÆ5\\d33"
- readcolumn x 1
- readcolumn y 2
- closewindow vy3mm.nar
- rpn <y 4.5 * >y
- graphlimits -9 45 -2.7 18.45
- graphticks 5 10 5 5
- drawmybox nolabels perpendicular
- plothistogram
- % ----------------------
- datafile vy.30siov0_jy
- newGraphlocation "\\u30\\dSiO v=0 J=1\sÆ0"
- readcolumn x 1
- readcolumn y 2
- closewindow vy.30siov0_jy
- graphlimits -9 45 0 0
- graphticks 5 10 10 10
- drawmybox nolabels perpendicular
- plothistogram
- % ----------------------
- datafile vy.29siov0_jy
- newGraphlocation "\\u29\\dSiO v=0 J=1\sÆ0"
- readcolumn x 1
- readcolumn y 2
- closewindow vy.29siov0_jy
- graphlimits -9 45 0 0
- graphticks 5 10 20 20
- drawmybox nolabels perpendicular
- plothistogram
- % ----------------------
- datafile vy.28siov1_jy
- newGraphlocation "\\u28\\dSiO v=1 J=1\sÆ0"
- readcolumn x 1
- readcolumn y 2
- closewindow vy.28siov1_jy
- graphlimits -9 45 0 0
- graphticks 5 10 1000 1000
- drawmybox nolabels perpendicular
- plothistogram
- % ---------------
-
- % Set the frame to include all the graphs and label the axes
- graphframe gleft gright 1.25 gtop .25 +
- scale 1.5
- drawxlabel V\\dLSR\\u (km s\\u-1\\d)
- drawylabel Flux Density (Jy)
- graphframe gleft gright 1.5 + gbottom gtop
- scale 2
- % Draw a big title across the top
- drawtitle SiO and H\\d2\\uO Masers Toward VY CMa
-
- % Tidy up
- closewindow drawmybox
- closewindow newgraphlocation
-